//https://leetcode.cn/problems/zuo-xuan-zhuan-zi-fu-chuan-lcof/
class Solution {
public:
    string reverseLeftWords(string s, int n) {
        string tmp;
        int i = n;
        while (i < s.size())
        {
            tmp.push_back(s[i]);
            ++i;
        }

        for (int k = 0; k < n; ++k)
        {
            tmp.push_back(s[k]);
        }

        return tmp;
    }
};